package com.hiwhitley.himei.contract.model;

import com.hiwhitley.himei.contract.DailyContract;
import com.hiwhitley.himei.entity.Video;
import com.hiwhitley.himei.network.RetrofitFactory;
import com.hiwhitley.himei.network.service.OpenEyesService;

import rx.Observable;

/**
 * Created by hiwhitley on 2016/9/24.
 */

public class DailyModel implements DailyContract.Model{
    private OpenEyesService mOpenEyesService;

    private static final String TAG = "DailyModel";

    public DailyModel() {
        mOpenEyesService = RetrofitFactory.getOpenEyesService();
    }

    @Override
    public Observable<Video> getDaily(String url) {
        return mOpenEyesService.getDaily(url);
    }
}
